package com.saturn.action.auth.report;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.saturn.app.web.IAction;
import com.saturn.app.web.IView;
import com.saturn.app.web.view.JspView;
import com.saturn.report.ReportView;

public class QueryReportViewAction implements IAction {

	@Override
	public IView execute(HttpServletRequest request,
			HttpServletResponse response) {
		
		String id = request.getParameter("id");
		ReportView reportView = ReportView.get(id);
		
		request.setAttribute("reportView", reportView);
		return new JspView("/report/reportView/editReportView.jsp");
	}

	@Override
	public String requestMapping() {
		return "/auth/report/queryReportView.action";
	}

}
